package com.eshop.service.Impl;

import com.eshop.dao.Impl.UserDaoImpl;
import com.eshop.dao.UserDao;
import com.eshop.model.User;
import com.eshop.service.LoginService;

public class LoginServiceImpl implements LoginService {
    UserDao userDao = new UserDaoImpl();

    @Override
    public User getUserByUsernameAndPassword(String username, String password) {
        return userDao.queryUserByUsernameAndPassword(username,password);
    }
}
